<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Admin Mode;</title>
	<script type="text/javascript" src="script/validator.js"></script>
	<script type="text/javascript" src="script/calendar.js"></script>
</head>
<body onload="loadPageHide()" >
    <?php
       if ($_GET['gagal'] == 1){
           ?>
            <script type="text/javascript">alert("Operation failed");</script>
           <?
       }
    ?>
    <div id="container">
	<div id="headerBody">
	<div id="menuHeader">
		<table id="TableSearch">
            <tr>
            <td>
            <form id="Search" name="Search" method ="GET" action="search_result.php">

            	<input type="text" id="SearchBar" name="SearchBar"/>

                <input type="submit" id="SearchOk" name="SearchOk" value="Search"/>
            </form>
            </td>
			 <td>
             </td>
            <td>
			<a href="database/login.php?logout=1">Logout</a>
			</td>
			</tr>
		</table>
		</div>	
	</div>
    <div id="centerBody">
        <div id="contentUserAndPassword">
        	<form class="Admin" method = "POST" action="database/admintask.php " id = "ChangeUserAndPassword" name = "ChangeUserAndPassword" onsubmit="return CekGantiPassword(UserName.value,Password.value,LabelUserNameSalah,LabelPasswordSalah);">
      		<p>
            This Form is for changing the user name and password
            
            <br />
            <label id="LabelUserName"> User Name</label> <span id="UserNameSpan"> : </span> <input type="text" id="UserName" name="UserName"/> <label class="Peringatan" id="LabelUserNameSalah"> </label>
            <br />
            <br />
            
            <label id="LabelPassword"> (New)Password</label> <span id="PasswordSpan"> : </span> <input type="password" id="Password" name="Password"/> <label class="Peringatan" id="LabelPasswordSalah"> </label>
            <br />
            <input type="submit" id="SubmitUserAndPassword" name="SubmitUserAndPassword" value="Change" />
            </p>
            </form>
			
			
            <form class ="Admin" method = "POST" action="database/admintask.php" id="BlockUser" name="BlockUser" onsubmit="return CekBlockUser(BlockUserName.value,LabelBlockUserNameSalah);">
            <p>
            This form is for blocking or unblocking the user status
            <br />
            <label id="LabelBlockUserName"> UserName to be blocked/unblocked</label> <span id="BlockUserNameSpan"> : </span> <input type="text" id="BlockUserName" name="BlockUserName" /> <label class="Peringatan" id="LabelBlockUserNameSalah"> </label>
            <br />
            <input type="submit" id="SubmitBlockUserName" name="SubmitBlockUserName" value="Block" />
            </p>
            </form>
			
			<form class ="Admin" method = "POST" action="database/admintask.php" id="BlockPhoto" name="BlockPhoto" onsubmit="CekPhotoID(BlockUserPhoto,LabelBlockUserPhoto)">
            <p>
            This form is for deleting the photo, simply enter the photo ID
            <br />
            <label id="LabelBlockPhoto"> Photo ID to be blocked</label> <span id="BlockPhotoSpan"> : </span> <input type="text" id="BlockUserPhoto" name="BlockUserPhoto" /> <label class="Peringatan" id="LabelBlockUserPhoto"> </label>
            <br />
            <input type="submit" id="SubmitBlockUserPhoto" name="SubmitBlockUserPhoto" value="Block" />
            </p>
            </form>
			
			
   	 	</div>
	</div>
    <div id="footerBody">
    	<div id="footer" align="center">
                        Copyright &copy; 2011<br/>
                        Created by <a href="http://www.facebook.com/Gunawan.Robert" id="headerLink">Robert Gunawan</a>
						, <a href="http://www.facebook.com/danz3m" id="headerLink">Danang Tri Massandy</a>, 
						<a href="http://www.facebook.com/achmad.giovani" id="headerLink">Achmad Giovani</a>
                    </div>
    </div>
</div>
</body>
</html>
